package com.rbs.service;

import com.rbs.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user")//你要调那个模块 写的是服务名
public interface FeignService {
    @GetMapping("/user-module/user/selectOne/{id}")
    User selectOne(@PathVariable("id") int id);
}
